package com.sdp.khy.baotou.db.khy_package_logistics.entity;

import java.io.Serializable;
import java.time.LocalDateTime;

import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author zsp
 * @since 2023-11-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("khy_package_logistics")
public class KhyPackageLogistics extends Model<KhyPackageLogistics> {

    private static final long serialVersionUID=1L;

    /**
     * 内码
     */
    @TableId("key_id")
    private String keyId;

    /**
     * 时间
     */
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @TableField("logistics_time")
    private LocalDateTime logisticsTime;

    /**
     * 物流说明
     */
    @TableField("logistics_desc")
    private String logisticsDesc;

    /**
     * 快递单号
     */
    @TableField("package_id")
    private String packageId;
    
    /**
     * 快递状态
     */
    @TableField("package_state")
    private String packageState;


    @Override
    protected Serializable pkVal() {
        return this.keyId;
    }

}
